﻿using Idte.Core.Infrastructure.Repository;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace AppDesign.Models.ManageType
{
    [AggregateAttribute]
    public class DomainRelation
    {
        [Key, Column(Order = 0)]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
        public Guid UniqueId { get; set; }


        [Key, Column(Order = 1)]

        public Guid DomainParId { get; set; }
        public DomainTypes DomainTypesPar { get; set; }


        [Key, Column(Order = 2)]        
        public Guid DomainChildId { get; set; }
        public DomainTypes DomainTypesChild { get; set; }

        public string PropertyName { get; set; }
        public string RelationType { get; set; }
        public string AccMod { get; set; }
    }
}